package com.hqyj.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hqyj.dao.TimestandardMapper;
import com.hqyj.pojo.Timestandard;
import com.hqyj.service.ITimestandardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 上下班时间设定 服务实现类
 * </p>
 *
 * @author rock
 * @since 2021-11-18
 */
@Service
public class TimestandardServiceImpl extends ServiceImpl<TimestandardMapper, Timestandard> implements ITimestandardService {

    @Autowired(required = false)
    TimestandardMapper timestandardMapper;
    @Override
    public HashMap<String, Object> select() {
        HashMap<String,Object> map = new HashMap<>();
        List<Timestandard> list = timestandardMapper.selectList(null);
        map.put("list",list);
        return map;
    }
}
